export interface FileConfType {
  name: string
  fieldName: string
  allowedFileTypes: Array<string>
  maxFileSize: number
  server: string
  attachmentServer: string
  headers: Record<string, unknown>
  onBeforeUpload: (
    file: unknown,
    failFun: () => void,
    imageConf: FileConfType
  ) => boolean
  uploadFetch: (file: unknown, imageConf: FileConfType) => unknown
  getAttachmentUrl: (res: unknown, imageConf: FileConfType) => unknown
  uploadHandler: (
    file,
    succFun: () => void,
    failFun: () => void,
    imageConf: FileConfType
  ) => void
}
